package com.yanqu.road.server.timer.seacraftsouthsea;

import com.yanqu.road.server.manger.activity.peakseacraft.PeakSeacraftMgr;
import com.yanqu.road.server.manger.activity.peakstronghold.PeakStrongholdActivityMgr;
import com.yanqu.road.server.manger.activity.seacraft.SeacraftSouthSeaMgr;
import com.yanqu.road.server.manger.monopolymarket.MonopolyMarketMgr;
import com.yanqu.road.utils.executor.GeneralTask;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @Description
 * @Author cwq
 * @Data 2022/2/15 17:34
 */
public class SeacraftSouthSeaTask extends GeneralTask {
    protected Logger logger = LogManager.getLogger(SeacraftSouthSeaTask.class.getName());

    @Override
    public void doRun() {
        try {
            SeacraftSouthSeaMgr.getPromotionUnionList();
            SeacraftSouthSeaMgr.uploadObjectInfo();

            PeakSeacraftMgr.getPromotionUnionList();
            PeakSeacraftMgr.uploadObjectInfo();
            PeakSeacraftMgr.checkRegistrationList();
            PeakStrongholdActivityMgr.checkRegistrationList();
        }catch (Exception e) {
            logger.error(e.getMessage(), e);
        }
    }
}

